
<%@ page import="org.tailor.Comment"%>
<html>
<head>

<meta name="layout" content="mainlayout" />
<g:set var="entityName"
	value="${message(code: 'comment.label', default: 'Comment')}" />
<title><g:message code="default.list.label" args="[entityName]" />
</title>
</head>
<body>
	<div class="col_middel">

		<div class="body">
			<h1>
				<g:message code="default.list.label" args="[entityName]" />
			</h1>
			<g:if test="${flash.message}">
				<div class="message">
					${flash.message}
				</div>
			</g:if>
			<div class="list">
				<table>
					<thead>
						<tr>
							<th><g:message code="comment.id.label" default="Id" /></th>


							<th><g:message code="comment.commentID.label"
									default="Comment ID" /></th>
							<th><g:message code="comment.commentDescription.label"
									default="Comment Description" /></th>
							<th><g:message code="comment.authorEmail.label"
									default="Author Email" /></th>
							<th><g:message code="comment.authorUrl.label"
									default="Author Url" /></th>




							<th><g:message code="comment.client.label" default="Client" />
							</th>

						</tr>
					</thead>
					<tbody>
						<g:each in="${commentInstanceList}" status="i"
							var="commentInstance">
							<%--<tr>
								<td colspan="7"><h1>
										Region:&nbsp;${fieldValue(bean: regionInstance.tailor.regions, field: "regionName")}
									</h1>
								</td>
							</tr>
							--%>
									<tr class="${(i % 2) == 0 ? 'odd' : 'even'}">

										<td><g:link action="show" id="${commentInstance.id}">
												${fieldValue(bean: commentInstance, field: "id")}
											</g:link></td>

										<td>
											${fieldValue(bean: commentInstance, field: "commentID")}
										</td>

										<td>
											${fieldValue(bean: commentInstance, field: "commentDescription")}
										</td>

										<td>
											${fieldValue(bean: commentInstance, field: "authorEmail")}
										</td>

										<td>
											${fieldValue(bean: commentInstance, field: "authorUrl")}
										</td>

										<td>
											${fieldValue(bean: commentInstance.client, field: "firstName")}
										</td>

									</tr>
								
						</g:each>
					</tbody>
				</table>
			</div>
			<div class="paginateButtons">
				<g:paginate total="${commentInstanceTotal}" id="${regionId }" />
			</div>
		</div>
</body>
</html>
